import { getAPIList } from '$lib/api/server';
// import type { LayoutServerLoad } from './$types';
import type { LayoutLoad } from './$types';

export const ssr = false;
export const csr = true;
// export const trailingSlash = 'always'; // 与全局配置一致

// export const load: LayoutServerLoad = async () => {
//     return {
//         apiList: await getAPIList()
//     };
// };


export const load: LayoutLoad = async () => {
    return {
        apiList: await getAPIList()
    };
};

